<?php

/*
 * 详情控制器
 * @author sky
 * create_time 2017-04-23
 */


namespace App\Front\Controllers\Index;

use Illuminate\Http\Request;
use App\Admin\Controllers\Controller;
use App\Front\Models\Personal;
use Session;

class PersonalController extends Controller {


    /*
     * 更多商品列表
     * @author sky
     * create_time 2017-04-23
     */
    public function personal(Request $request) {
        $name = $request->session()->get('name');
       if($request->session()->get('name')!=""){
            $personal = Personal::Personal($name);
            $data['Personal'] = $personal;
	        return view('front.personal',$data);
    	}else{
    		return redirect()->route('login');
    	}
    }
}